#ifndef MYPUSHBUTTON_H
#define MYPUSHBUTTON_H
#include<QString>
#include <QPushButton>

class MyPushButton : public QPushButton
{
    Q_OBJECT
public:
    //explicit myPushButton(QWidget *parent = nullptr);
    /**
     * @brief myPushButton
     * @param normalImg 正常显示图片路径
     * @param pressImg 按下按钮后显示图片路径
     */
    MyPushButton(QString normalImg,QString pressImg="");
    QString normalImgPath;
    QString pressImgPath;
    /**
      *按钮向下跳
     * @brief zoom1
     */
    void zoom1();
    /**
      *按钮向上跳
     * @brief zoom2
     */
    void zoom2();
    void mousePressEvent(QMouseEvent *e);
    void mouseReleaseEvent(QMouseEvent *e);
signals:

public slots:
};

#endif // MYPUSHBUTTON_H
